package com.omar.labs.tamtamy.XML;

import com.omar.labs.tamtamy.Network;
import com.omar.labs.tamtamy.utils.XMLUtility;

public class XMLNetwork extends Network {

	public XMLNetwork(String xml) {
		this.id = XMLUtility.getNodeValue(xml, "id");
		this.network = XMLUtility.getNodeValue(xml, "name");
		this.creationDate = XMLUtility.getNodeValueWithAttribute(xml, "creationDate", "class=\"sql-timestamp\"");
		this.userCounter = XMLUtility.getNodeValue(xml, "userCounter");
		this.countentCounter = XMLUtility.getNodeValue(xml, "contentCounter");		
	}
	
}
